package com.service.impl;

import com.dao.UserDao;
import com.pojo.User;
import com.service.UserService;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<User> getUserList() {
        List<User> userList = new ArrayList<>();
        userList = userDao.getUserList();
        return userList;
    }
}
